@inject('request', 'Illuminate\Http\Request')
<header class="main-header">
    <!-- Logo -->
    <a href="{{ asset('/admin/home') }}" class="logo"
       style="font-size: 16px;">
        <!-- mini logo for sidebar mini 50x50 pixels -->
        <span class="logo-mini">
           <!-- @lang('global.global_title') -->
            <img src="{{ asset('static/images/logo.png') }}" style="width:60%;max-width:50px;" alt="">
        </span>
        <!-- logo for regular state and mobile devices -->
        <span class="logo-lg">
           <!-- @lang('global.global_title') -->
            <img src="{{ asset('static/images/max_logo.png') }}"  style="max-width:80%;max-height:50px;" alt="">
        </span>
    </a>
    <!-- Header Navbar: style can be found in header.less -->
    <nav class="navbar navbar-static-top">
        <!-- Sidebar toggle button-->
        <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
        </a>

        <div class="navbar-custom-menu">
                    <ul class="nav navbar-nav">
                       
                        <!-- User Account: style can be found in dropdown.less -->
                        <li class="dropdown user user-menu">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                <img src="{{asset('static/images/logo.png')}}" class="user-image" alt="User Image">
                                <span class="hidden-xs">{{$request->user()->name}}</span>
                            </a>
                            <ul class="dropdown-menu">
                                <!-- User image -->
                                <li class="user-header">
                                    <img src="{{asset('static/images/logo.png')}}" class="img-circle" alt="User Image">

                                    <p>
                                        {{$request->user()->name}}
                                        <small>{{$request->user()->email}}</small>
                                    </p>
                                </li>
                                
                                <!-- Menu Footer-->
                                <li class="user-footer">
                                    <div class="pull-left">
                                        <a href="{{ route('admin.change_password.index') }}" class="btn btn-default btn-flat">@lang('admin.manage.change_password.title')</a>
                                    </div>
                                    <div class="pull-right">
                                        <a href="#logout" onclick="$('#logout').submit();" class="btn btn-default btn-flat">@lang('global.app_logout')</a>
                                    </div>
                                </li>
                            </ul>
                        </li>
                        <!-- Control Sidebar Toggle Button -->
                        <li>
                            <a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>
                        </li>
                    </ul>
                </div> 

    </nav>
</header>


